app.controller('LoginCtrl',['$scope','$location','$rootScope',function($scope,$location,$rootScope){
    $rootScope.isNotIndex ='true';
    $scope.userEntity = {
        username:"",
        password:"",
    };

    $scope.rememberMe = "";

    $scope.login = function(){
        $location.path('/success').replace();
        console.log($scope.userEntity);
    }

}]);